package cn.imvc.app.models;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.imvc.app.entities.FundFlow;
import cn.imvc.app.entities.Member;
import cn.imvc.data.domain.ViewRequest;

public interface FundFlowModel{
	Page<FundFlow> find(ViewRequest viewRequest);

	FundFlow get(int id);

	FundFlow save(FundFlow entity);

	FundFlow update(FundFlow entity);

	void delete(int id);

	void deleteBatch(int[] ids);
	
	void addFundFlow(Member member,Integer money,String code,Byte type,Member fromMember);
	
	/**
	 * 查询我的资金
	 * @param member
	 * @param page
	 * @param type
	 * @return
	 */
	public Page<FundFlow> findMoneyPage(Member member, Integer page, Byte type);
	public Page<FundFlow> findMoneyPage(Member member, Pageable page, Byte type);
}